package com.cloud.bssp.netty.protocol.userdefined.message;

import lombok.Data;

import java.util.Date;

/**
 * @description： TODO
 * @author：weirx
 * @date：2021/11/16 15:14
 * @version：3.0
 */
@Data
public class LoginMessage extends Message {

    private String username;

    private String password;

    private Date loginTime;

    public LoginMessage(String username, String password, Date loginTime) {
        this.username = username;
        this.password = password;
        this.loginTime = loginTime;
    }

    @Override
    int getMessageType() {
        return LOGIN_REQUEST_MESSAGE;
    }
}
